﻿using System;
using System.ComponentModel;
using System.Linq;

namespace TeamLemonApp.ViewModels
{
    public class RecipeInfoViewModel : ViewModelBase
    {
        public event PropertyChangedEventHandler PropertyChanged;

        private string title;
        private string pictureLink;
        private string authorName;
        private int preparationTime;
        private int likes;

        public int Id { get; set; }

        public string Title
        {
            get
            {
                return this.title;
            }
            set
            {
                this.title = value;
                this.OnPropertyChanged("Title");
            }
        }

        public string PictureLink
        {
            get 
            {
                return this.pictureLink;
            }
            set 
            {
                this.pictureLink = value;
                this.OnPropertyChanged("PictureLink");
            }
        }

        public string AuthorName
        {
            get
            {
                return this.authorName;
            }
            set
            {
                this.authorName = value;
                this.OnPropertyChanged("AuthorName");
            }
        }

        public int PreparationTime
        {
            get
            {
                return this.preparationTime;
            }
            set
            {
                this.preparationTime = value;
                this.OnPropertyChanged("PreparationTime");
            }
        }

        public int Likes
        {
            get
            {
                return this.likes;
            }
            set
            {
                this.likes = value;
                this.OnPropertyChanged("Likes");
            }
        }
    }
}
